<!DOCTYPE html>
<html>
<!-- head -->
{include file="common/page/head"}
<body>
<!---------------- 商品列表 ------------------->

<!-- 页头 -->
{include file="common/page/header"}
<!-- 主体 -->
<div class="content container-fluid{if $leftBarScale eq '1'} scale{/if}">
    <div class="row">
        <div class="col-md-2 left-section">
            <!-- 左导航菜单 -->
            {include file="common/page/menu"}

        </div>
        <div class="col-md-10 right-section">
            <!--内容区域-->
            <h3><i class="icon iconfont">{$Think.session.currentMenu.icon}</i>订单修改
                <div class="operation-div">
                    <a class="btn btn-default" href="javascript:window.history.go(-1);">返回</a>
                </div>
            </h3>
            <div class="inner-section row">
                <div id="content">
                {if $valid eq true}
                	<form action="#" method="post" id="myForm"  enctype="multipart/form-data">
                		<input type="hidden" name="oid" class="oid" value="{$orderInfo.id}">
                    	<table class="table table-striped table-hover table-bordered table-base">
                    	{if $orderInfo.state == 0}
                    		<tr>
                                <td class="td1"><label><span class="must-tag">*</span>修改订单金额</label></td>
                                <td class="td2"><input type="text" class="form-control" id="total_price" name="total_price" value="{$orderInfo.total_price}"></td>
                                <td class="td3"></td>
                            </tr>
                        {/if}
                        	<tr>
                                <td class="td1"><label><span class="must-tag">*</span>修改收货人</label></td>
                                <td class="td2"><input type="text" class="form-control" id="name" name="name" value="{$orderInfo.address.name}"></td>
                                <td class="td3"></td>
                            </tr>
                            <tr>
                                <td class="td1"><label><span class="must-tag">*</span>修改收货电话</label></td>
                                <td class="td2"><input type="text" class="form-control" id="phone" name="phone" value="{$orderInfo.address.phone}"></td>
                                <td class="td3"></td>
                            </tr>
                            <tr>
                                <td class="td1"><label><span class="must-tag">*</span>修改地区</label></td>
                                <td class="td2"><input type="text" class="form-control" id="area" name="area" value="{$orderInfo.address.area}"></td>
                                <td class="td3"></td>
                            </tr>
                            <tr>
                                <td class="td1"><label><span class="must-tag">*</span>修改收货地址</label></td>
                                <td class="td2"><input type="text" class="form-control" id="address" name="address" value="{$orderInfo.address.address}"></td>
                                <td class="td3"></td>
                            </tr>
                            <tr>
                                <td class="td1"><label>快递公司</label></td>
                                <td class="td2">
                                	<select id="express_id" name="express_id" class="select-normal">
                                		<option>选择快递公司</option>
                                		{foreach $expressList as $express}
                                		<option value="{$express.id}" {if $express.code eq $orderInfo.express_code}selected{/if} >{$express.name}</option>
                                		{/foreach}
                                	</select>
                                </td>
                             </tr>
                            <tr>
                                <td class="td1"><label>快递单号</label></td>
                                <td class="td2"><input type="text" class="form-control" id="express_number" name="express_number" value="{$orderInfo.express_number}"></td>
                                <td class="td3"></td>
                            </tr>
                            <tr>
                            	<td></td>
                            	<td>
                            		<a href="javascript:;" class="btn btn-success save">提交</a>
                            		<a href="javascript:;" class="btn btn-default back">返回</a>
                            	</td>
                            	<td></td>
                            <tr>
                    	</table>
                    </form>
                {else}
                    <p>只能在发货前修改订单信息</p>
                {/if}
                </div>
            </div>
        </div>
    </div>
</div>

<!-- 页脚 -->
{include file="common/page/footer"}

<!-- jsfiles -->
{include file="common/page/jsfiles"}
<script type="text/javascript" src="__static__/js/form/jquery.form.js"></script>
<script type="text/javascript" src="__static__/js/form/jquery.validate.js"></script>
<script type="text/javascript" src="__static__/js/form/jquery.validate.extend.js"></script>
<script type="text/javascript" src="__app__/admin/view/{:request()->controller()}/orderModify/orderModify.js"></script>
</body>
</html>

